//登录类型
export interface ILoginForm {
  username: string;
  password: string;
}
export interface UpPassword {
  oldpassword: string;
  password: string;
  repassword: string;
}
//定义全部接口返回数据都拥有ts类型
export interface ResponseData {
  msg: string;
  path?: string;
  data: any;
}
export interface ILoginCallback extends ResponseData {
  data: {
    token: string;
  };
}
export interface IInfoCallback extends ResponseData {
  code: number;
  data: {
    aaa: string;
    userId: number;
    avatar: string;
    username: string;
    password: string;
    desc: string;
    roles: string[];
  };
}
